{include file="header.html"}

<body>

<ul class="nav nav-tabs">
	<li class="active"><a href="{$appadmin}?m=shop_category">分类管理</a></li>
   
    </ul>
 
  
  <div class="main-body">
  	 
    <table class="table">
    	<tr>
        	<td align="center">名称</td>
            <td align="center">状态</td>
            <td align="center">操作</td>
        </tr>
    	{foreach item=c from=$data}
        <tr class="item">
        	<td width="200">
            	{$c.title}  
            </td>
            <td> {if $c.status eq 2}
   <img src='{$skins}images/yes.gif' class="ajax_no" url='{$appadmin}?m=shop_category&a=status&id={$c.id}&status=4' rurl='{$appadmin}?m=shop_category&a=status&id={$c.id}&status=2'>
    {else}
    <img src='{$skins}images/no.gif' class="ajax_yes" url='{$appadmin}?m=shop_category&a=status&id={$c.id}&status=2' rurl='{$appadmin}?m=shop_category&a=status&id={$c.id}&status=4'>
    {/if}</td>
            <td align="right"><a href="{$appadmin}?m=shop_category&a=add&id={$c.id}">编辑</a>&nbsp;&nbsp; 
            <a class="delete" href="javascript:;" url="{$appadmin}?m=shop_category&a=delete&id={$c.id}">删除</a></td>
            
             
            
        </tr>
        {/foreach}
    </table>
  	
  </div>
{include file="footer.html"}
</body>
</html>
